Skip to content

✨[feat]: Feature/more info 팀약속 뷰 구현 #10

Merged
Roy-wonji merged 5 commits intodevelopfrom
Feature/moreInfo_teanAgreement
Aug 14, 2025
Merged

✨[feat]: Feature/more info 팀약속 뷰 구현 #10
Roy-wonji merged 5 commits intodevelopfrom
Feature/moreInfo_teanAgreement

Conversation

@Roy-wonji
Copy link
Contributor

🔗 관련 이슈


✨ 작업 내용

  • 팀약속 뷰 구현
  • 애니메이션 modifier 로 구현

Close Issues 🔒 (닫을 Issue)

Close #2

@Roy-wonji Roy-wonji added ✨ 기능추가 새로운 기능 추가 🎨 디자인 UI 디자인 작업 labels Aug 13, 2025
@auto-assign auto-assign bot requested review from Peter1119 and minneee August 13, 2025 02:58
Copy link
Collaborator

@minneee minneee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

role: String,
imageName: String,
mbti: MBTI?,
introduction: String? = nil,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

왜 여기만 nil 넣어두신건가요?

Copy link
Collaborator

@Peter1119 Peter1119 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

뭔가 중복된 작업이 있는 것 같은데 머시 후에 정리할 필요가 있겠네요 🤔

Comment on lines +19 to +29

@Model
final class IntroductionRowModels: Identifiable, Hashable {
var id = UUID()
var name: String
var role: String
var imageName: String
var mbti: MBTI?
var introduction: String?
var isLeader: Bool

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

row model을 내부데이터로 저장가능하게 구현하신걸까요??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Peter1119 이건 아마 삭제 할꺼여서 develop 에서 합치고 하는게 좋을거 같네여

Comment on lines -11 to +24
func body(content: Content) -> some View {
content
.padding(15)
.frame(maxWidth: .infinity, alignment: .leading)
.background(
RoundedRectangle(cornerRadius: 16)
.fill(.staticWhite)
)
.overlay(
RoundedRectangle(cornerRadius: 16)
.stroke(.borderInactive, lineWidth: 0.5)
)
.shadow(color: .shadowDefault, radius: 3, x: 0, y: 1)
}
func body(content: Content) -> some View {
content
.padding(15)
.frame(maxWidth: .infinity, alignment: .leading)
.background(
RoundedRectangle(cornerRadius: 16)
.fill(.staticWhite)
)
.overlay(
RoundedRectangle(cornerRadius: 16)
.stroke(.borderInactive, lineWidth: 0.5)
)
.shadow(color: .shadowDefault, radius: 3, x: 0, y: 1)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 줄 간격 컨벤션을 맞추면 좋을 것 같은데
동일하게 가지 않으면 코드리뷰에서 이전에 했던 것들이 올라오네요 ~!

Comment on lines +16 to +19
// 화면에 쓸 리스트 (DB가 비어 있으면 mock 사용)
private var displayItems: [IntroductionRowModels] {
items.isEmpty ? IntroductionRowModels.mockData : items
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우선 db 비어있으면 mock 사용은 오류가 많을 것 같습니다
id를 넘기면서 뷰 전환 및 데이터를 불러오는데
이렇게 되면 id가 불일치하게 되어서 에러가 떨어질 것 같네요

Comment on lines +18 to +37
ZStack {
Color.white
.edgesIgnoringSafeArea(.all)

VStack {
Spacer()
.frame(height: 14)

CustomNavigationBackBar(text: "팀 약속") {
coordinator.goBack()
}


teamAgreeMentHeader()

agreeMentCard()

}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그 .. 이건 그대로 가실건가요 ?
Color.white 때문에 ZStack으로 하는게 이유를 잘 모르겠습니다

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Peter1119 이건 뒤에 배경을 흰색으로 고정 할려고 해서 하는겁니다 !

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.background(.white)로 가도 되지 않나요 ???

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그렇게 가도 될거 같아요!

Comment on lines +44 to +75
VStack {
Image(asset: .teamiIntroduce)
.resizable()
.scaledToFit()
.frame(width: 56, height: 56)

Spacer().frame(height: 10)

HStack {
Spacer()

Text("우리의 약속")
.pretendardFont(family: .medium, size: 16)
.foregroundStyle(.textPrimary)

Spacer()
}

Spacer().frame(height: 10)

HStack {
Spacer()
TypingText(
text: "더 나은 팀이 되기 위해 함께 지켜나갈 소중한 약속들입니다.",
font: .pretendardFontFamily(family: .bold, size: 16),
perChar: 0.06,
startDelay: 0.15,
showsCursor: false
)
Spacer()
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VStack(spacing: 10, aligment: .top)으로 하면 되지 않을까요 ?

Comment on lines +81 to +98
private func agreeMentCard() -> some View {
let indices = Array(agreeMentItem.indices)
ScrollView(.vertical) {
ForEach(indices, id: \.self) { index in
let item = agreeMentItem[index]
agreeMenListitem(
number: item.number,
agreeMentTitle: item.agreeMentTitle,
agreeMentSubTitle: item.agreeMentSubTitle,
circleColor: item.color,
fontColor: item.color
)
.staggeredAppear(index: index, currentMaxIndex: $currentMaxIndex)
}
}
.scrollIndicators(.hidden)
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

원지님 Xcode 설정에서 오타 감지할 수 있는 모드가 있어서 그거 활용하시면 좋을 것 같아요 ~!

…duction into Feature/moreInfo_teanAgreement

# Conflicts:
#	TeamIntroduce/TeamIntroduce/Sources/Core/Data/Item.swift
#	TeamIntroduce/TeamIntroduce/Sources/Presnetaion/IntroduceMain/Coordinator/View/IntorduceCoordinatorView.swift
@Roy-wonji Roy-wonji merged commit 348a60d into develop Aug 14, 2025
@Roy-wonji Roy-wonji deleted the Feature/moreInfo_teanAgreement branch August 14, 2025 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ 기능추가 새로운 기능 추가 🎨 디자인 UI 디자인 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants